Skip to content

создание VuInput компонента#15

Closed
Giovaaanniii wants to merge 5 commits intomainfrom
VuInput
Closed

создание VuInput компонента#15
Giovaaanniii wants to merge 5 commits intomainfrom
VuInput

Conversation

@Giovaaanniii
Copy link
Copy Markdown

No description provided.

@Giovaaanniii
Copy link
Copy Markdown
Author

не понимаю работы состояния open, т.к в active уже состояние open + как я это должен отображать в sb.

Comment thread src/components/Input/VuInput.stories.ts Outdated
message: 'Номер группы',
},
};
export const Hover: Story = {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Вынеси эту историю в отдельную, типа "Validate"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

А чтобы показать hover, можешь использовать pseudo. Посмотри, как это сделано в кнопке и поиске

Comment thread src/components/Input/VuInput.stories.ts Outdated
import VuInput from './VuInput.vue';

const meta = {
title: 'Viribus Unitis/VuInput',
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Подключи tags: ['autodocs'], чтобы дока сгенерировалась.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Здесь же можно дефолтные аргументы для всех историй прописать

Comment thread src/components/Input/VuInput.vue Outdated
type: String,
default: ""
},
color: {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Поскольку у нас дизайн-система, и там всего один вариант цвета, лучше не отдавать это поле. Поставь одно значение и все

Comment thread src/components/Input/VuInput.vue Outdated
type: String,
default: "#000000"
},
variant: {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Аналогично здесь -- в ДС всего один вариант, его и оставляем

@BatuevIO
Copy link
Copy Markdown
Contributor

BatuevIO commented Dec 5, 2025

не понимаю работы состояния open, т.к в active уже состояние open + как я это должен отображать в sb.

Глянул -- вроде бы он уже на уровне либы поддерживается. так что забей. Уже все работает

Copy link
Copy Markdown
Contributor

@BatuevIO BatuevIO left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Последнее исправление, потом все ок

type: String,
default: ""
},
variant: {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Вроде просил убрать -- ты только в типе заменил. Убери этот проп вообще, и впиши сразу в компонент значение

import { PropType } from 'vue';

type VariantType = "outlined" | "filled" | "underlined" | "plain" | "solo" | "solo-inverted" | "solo-filled"
type VariantType = "outlined"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Этот тип не нужен

@BatuevIO BatuevIO closed this Apr 28, 2026
@BatuevIO BatuevIO deleted the VuInput branch April 28, 2026 12:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants